package com.cx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author cx
 * @since 2024-06-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_article")
@ApiModel(value = "Article对象", description = "")
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文章ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "文章作者ID")
    private Integer articleUsernameId;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "文章具体内容")
    private String content;

    @ApiModelProperty(value = "文章分类")
    private String categories;

    @ApiModelProperty(value = "文章标签")
    private String tags;

    @ApiModelProperty(value = "文章点击总量")
    private Integer hits;

    @ApiModelProperty(value = "文章评论总量")
    private Integer commentsNum;

    @ApiModelProperty(value = "文章点赞总量")
    private Integer articleLike;

    @ApiModelProperty(value = "文章收藏总量")
    private Integer collect;

    @ApiModelProperty(value = "文章转发总量")
    private Integer forward;

    @ApiModelProperty(value = "发表时间")
    private Date created;

    @ApiModelProperty(value = "修改时间")
    private Date modified;

    @ApiModelProperty(value = "是否允许评论")
    private Boolean allowComment;

    @ApiModelProperty(value = "文章缩略图url")
    private String thumbnail;


}
